package job.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import core.domain.BaseEntity;
import lombok.Data;

@TableName("tb_user_exam")
@Data
public class UserExam extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID, value = "user_exam_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userExamId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;

    private Integer score;

    private Integer examRank; // 竞赛排名
}

